package springboot.demo.shiro.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;

/**
 * <p>Project: springboot-demo </p>
 * 
 * <p>Function:  </p>
 * 
 * <p>Description:  </p>
 * 
 * @author weiqiang.li
 * 
 * @date 2018/11/24
 * 
 * @version 1.0
 */
@RestController
public class AuthController extends BaseController {

    @RequestMapping("/tologin")
    public void tologin() {
        response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
    }

    @RequestMapping("/unauth")
    public void accessDenied() {
        response.setStatus(HttpServletResponse.SC_FORBIDDEN);
    }

}
